package com.whc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whc.entity.User;
import com.whc.vo.FriendVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 韦红材
 * @ClassName UserMapper
 * @data 2024/10/21 17:55
 * @Version V1.0
 **/
@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<FriendVo> getAllFriends(long pid);

    FriendVo getFriendById(long id);

    List<Integer> getAllUserId();

    void addUserMoney(long userId,double money);

    void reduceMoney(long userId,double money);
}
